/**
 * @program: clms-second
 * @description:
 * @author: mitu_echo
 * @create: 2021-08-07 11:58
 **/

package com.second.weixinpay.controller;

import com.second.common.pojo.R;
import com.second.weixinpay.service.WeiXinPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/weixin")
public class WeiXinPayController {

    @Autowired
    private WeiXinPayService weiXinPayService;

    @RequestMapping("/payMoney")
    public R payMoney() {

        return weiXinPayService.getCode();
    }

    @RequestMapping("/getPayStatus")
    public R getPayStatus(String orderNo) {

        return weiXinPayService.getPayStatus(orderNo);
    }
}
